import jwt from "jsonwebtoken";
import { jwtSecret, jwtExpires } from "../config/config.default";

export function getToken(payload: any) {
  return jwt.sign(payload, jwtSecret, { expiresIn: jwtExpires });
}
